<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_info', function (Blueprint $table) {
            $table->integer('admin_id');
            $table->string('reallyName')->nullable()->comment('真实姓名');
            $table->string('headImg')->nullable()->comment('头像');
            $table->tinyInteger('sex')->nullable()->comment('性别');
            $table->tinyInteger('age')->nullable()->comment('年龄');
            $table->string('idNumber')->nullable()->comment('身份证号码');
            $table->string('province')->nullable()->comment('省份');
            $table->string('city')->nullable()->comment('城市');
            $table->string('area')->nullable()->comment('地区');
            $table->string('address')->nullable()->comment('现住地址');
            $table->primary('admin_id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin_info');
    }
}
